﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;

namespace Lilium.Reflection
{
    public static class AssemblyExtensions
    {
        public static bool IsDynamic(this Assembly assembly)
        {
            if (assembly == null) throw new ArgumentNullException("assembly");

            return assembly.ManifestModule.Name.StartsWith("<", StringComparison.Ordinal);
        }
    }
}
